﻿@model 로그Model
@{
    ResLink.AddCss("~/res/css/log/log.css");
}

<h1>로그기록</h1>
<hr />

<h2>@Model.구분</h2>
<hr />

<div class="row">
    <div class="span1">사용자:</div>
    <div class="span3">@Model.사용자</div>

    <div class="span1">URL:</div>
    <div class="span7">@Model.URL</div>
</div>

<div class="row">
    <div class="span1">IP:</div>
    <div class="span3">@Model.IP</div>

    <div class="span1">일시:</div>
    <div class="span7">@Model.일시</div>
</div>
<hr />

 <pre>
    @Html.Raw(Model.내용)
</pre>

<div class="controls">
    <a href="@Url.LogList(null)" class="btn"><i class="icon-list"></i> 목록으로</a>
    <a onclick="삭제()"  class="btn"><i class="icon-remove"></i> 삭제</a>
</div>

<script type="text/javascript">
    function 삭제() {
        AjaxPost('@Url.MyAction("Delete", "Log")', { id: '@Model.ID' }, "삭제하시겠습니까?");
    }
</script>